import request from "@/utils/request";

export function login(username, password) {
    const data = {
        username,
        password,
        // uuid,
    }
    return request({
        url: '/login',
        headers: {
            isToken: false,   // false为不设置token  true为设置
            repeatSubmit: true,    // true为防止重复提交
        },
        method: 'post',
        data: data,
    })
}
export function register(registerInfo) {
    // console.log('login20' + registerInfo.tel)
    return request({
        url: '/register',
        headers: {
            isToken: false,   // false为不设置token  true为设置
            repeatSubmit: true,    // true为防止重复提交
        },
        method: 'post',
        data: registerInfo,
    })
}

export function logout() {
    return request({
        url: '/logout',
        headers: {
            isToken: false,   // false为不设置token  true为设置
            repeatSubmit: true,    // true为防止重复提交
        },
        method: 'post',
    })
}
// 无用
export function wuYong() {
    return request({
        url: '/wuYong',
        headers: {
            isToken: false,   // false为不设置token  true为设置
            repeatSubmit: true,    // true为防止重复提交
        },
        method: 'post',
    })
}
